package day216;

import com.sun.org.apache.xerces.internal.impl.xs.SchemaNamespaceSupport;

import java.sql.SQLOutput;
import java.util.Scanner;

public class TryDemo01 {
    public static void main(String[] args) {
        /*
        Scanner scan = new Scanner(System.in);
        System.out.println("用户输入");
        int num = scan.nextInt();
        while(num!=0){
            if(num>0){
                System.out.println("+");
            }else {
                System.out.println("-");
            }
            num=scan.nextInt();
        }
        System.out.println("0");

        Scanner scan = new Scanner(System.in);
        System.out.println("请输入年份:");
        int year = scan.nextInt();
        System.out.println("请输入月份");
        int month=scan.nextInt();
        int day=0;
        switch(month){
            case 1:
            case 3:
            case 5:
            case 7:
            case 8:
            case 10:
            case 12:
                day=31;
                break;
            case 4:
            case 6:
            case 9:
            case 11:
                day=30;
                break;
            case 2:
                if(year%4==0){
                day=29;
            }else{
                day=28;
            }
        }
        System.out.println("天数为:"+day+"天");

        int sum=0;
        int i=1;
        while(i<=100){
            sum=sum+i;
            i++;
        }
        System.out.println("sum="+sum);

         */
       int count=0;
       for(int year=1900;year<=2023;year++){
           if(year%4==0){
               System.out.print(year+" ");
               count++;
               if(count%10==0){
                   System.out.println();
               }
               }

           }
































































    }
}
